<template>
  <div class="right-chart-1">
    <div class="rc1-header">预警信息</div>
    <dv-decoration-2 style="height:10px;" />
    <div class="rc1-chart-container">
      <table class="r-table">
        <tr>
          <th>预警内容</th>
          <th>报警时间</th>
          <th>办理状态</th>
        </tr>
        <tr>
          <td>
            <div class="info-container">
                <img src="./img/预警图标-预警.png" class="imgstyle" />
                <div class="text">出勤异常
                </div>
              </div>
          </td>

          <td>
            <div class="info-container">
                <div class="text">2024.9.20 12:15:36
                </div>
              </div>
          </td>
          <td>
            <div class="info-container">
                <div class="text-1">未处理
                </div>
              </div>
          </td>
        </tr>
        <tr>
          <td>
            <div class="info-container">
                <img src="./img/已处理.png" class="imgstyle" />
                <div class="text">数量减少
                </div>
              </div>
          </td>
          <td>
            <div class="info-container">
                <div class="text">2024.9.22 17:18:31
                </div>
              </div>
          </td>
          <td>
            <div class="info-container">
                <div class="text-2">已处理
                </div>
              </div>
          </td>
        </tr>
      </table>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RightChart1',
  data () {
    return {
      config: {
        data: []
      }
    }
  }
}
</script>

<style lang="less">

.info-container {
  display: flex; /* 使用弹性布局 */
}

.imgstyle {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: middle; /* 图标垂直居中 */
}

.text {
  color: whitesmoke;
  font-size: 14px;
  margin-right: 5px;
}

.text-1{
  font-size: 15px;
  color:rgb(235, 57, 84);
  margin-left: 10px;
}

.text-2{
  font-size: 15px;
  color: greenyellow;
  margin-left: 10px;
}

.r-table {
  width: 400px;
  height: 120px;
  border-collapse: collapse; /* 表格边框合并为一个边框 */
  margin-top: 10px;
}

.r-table th{
  width: 130px;
  height: 30px;
  overflow: hidden; /* 超出内容隐藏 */
  text-overflow: ellipsis; /* 溢出文本用省略号表示 */
  white-space: nowrap; /* 文本不换行 */
  font-family:'Courier New', Courier, monospace;
  text-align: left;
}

.r-table td{
  width: 130px;
  height: 30px;
  overflow: hidden; /* 超出内容隐藏 */
  text-overflow: ellipsis; /* 溢出文本用省略号表示 */
  white-space: nowrap; /* 文本不换行 */

}
.right-chart-1 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  .rc1-header {
    font-size: 20px;
    font-weight: bold;
    color: rgb(81,119,243);
    text-indent: 20px;   //设置文本的首行缩进为 20 像素
  }

  .rc1-chart-container {
    flex: 1;
    display: flex;
  }

  .left {
    width: 30%;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .number {
      font-size: 34px;
      color: #096dd9;
      font-weight: bold;
      margin-bottom: 30px;
    }
  }

  .right {
    flex: 1;
    padding-bottom: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}
</style>
